Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDraft


GetPersistentObjectID

The GetPersistentObjectID method returns the scripting ID of the specified part or frame.

ODPersistentObjectID GetPersistentObjectID (
                        in ODPersistentObject object, 
                        in ODObjectType objectType);
object
A reference to the persistent object.
objectType
The type of the persistent object. The object type must be either a part (kODPartObject) or a frame (kODFrameObject).
return value
The ID, to be used for scripting purposes, of the specified part or frame.
DISCUSSION
You can call this method to obtain the ID that identifies the specified part or frame for scripting purposes.

EXCEPTIONS
kODErrInvalidPersistentObject
This specified persistent object is not valid.
SEE ALSO
The ODObjectType type (page 903).
The ODPersistentObjectID type (page 900).
The ODDraft::AcquirePersistentObject method (page 157).
"Default Object Accessors" on page 421 in OpenDoc Programmer's Guide.
"Using Persistent Object ID" on page 439 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help